import {createRouter, createWebHashHistory} from 'vue-router'
import routes from '@/router/routes'

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

//进入路由前执行
router.beforeEach((to, from, next) => {
  document.title = to.meta.title + ' | ' + window.eason.title
  next()
})

export default router
